package com.hkts.beltweigher.master.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hml
 * @since 2024-07-03
 */
public class RegularTime extends Model<RegularTime> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;
    /**
     * 生效系数
     */
    private Float coefficientf;
    /**
     * 当前状态：0、未生效1、已生效
     */
    private Integer status;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public Float getCoefficientf() {
        return coefficientf;
    }

    public void setCoefficientf(Float coefficient) {
        this.coefficientf = coefficient;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public static final String ID = "id";

    public static final String START_TIME = "start_time";

    public static final String COEFFICIENT = "coefficient";

    public static final String STATUS = "status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RegularTime{" +
                ", id=" + id +
                ", startTime=" + startTime +
                ", coefficient=" + coefficientf +
                ", status=" + status +
                "}";
    }
}
